package com.aiwei.tdjk.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * Created by yanfeng on 2016/12/19.
 */
@NoArgsConstructor
@AllArgsConstructor
public enum CheckStateEnum {

//    00未对账、01 对帐中、02已对账成功、03 对帐失败

    undo("00","未对账"), doing("01","对帐中"),success("02","已对账成功"),fail("03","对帐失败");

    @Getter
    private String code;
    @Getter
    private String info;


    public static CheckStateEnum getValue(String code) {
        final CheckStateEnum[] values = CheckStateEnum.values();
        for (CheckStateEnum value : values) {
            if (value.getCode().equals(code)) {
                return value;
            }
        }
        return null;
    }
}
